           package com.java.diagnostics.visualizer.impl.axes;
           
           import com.java.diagnostics.visualizer.data.DataPoint;
           import com.java.diagnostics.visualizer.data.axes.AxisPair;
           import com.java.diagnostics.visualizer.data.axes.XDataAxis;
           import com.java.diagnostics.visualizer.data.axes.YDataAxis;
           import com.java.diagnostics.visualizer.impl.data.DataPointImpl;
           
           public class AxisPairImpl
             implements AxisPair
           {
             private XDataAxisImpl xAxis;
             private YDataAxisImpl yAxis;
           
             public AxisPairImpl(XDataAxis xAxis, YDataAxis yAxis)
             {
               this.xAxis = ((XDataAxisImpl)xAxis);
               this.yAxis = ((YDataAxisImpl)yAxis);
             }
           
             public DataPoint createDataPoint(double y, String comment) {
               return new DataPointImpl(this.xAxis.getSequenceUID(), this.xAxis.getX(), y, 
                 comment, this);
             }
           
             public DataPoint createDataPoint(int sequenceUID, double x, double y, String comment)
             {
               return new DataPointImpl(sequenceUID, x, y, comment, this);
             }
           
             public XDataAxis getXAxis()
             {
               return this.xAxis;
             }
           
             public YDataAxis getYAxis()
             {
               return this.yAxis;
             }
           
             public String toString() {
               return "(" + this.xAxis.getUnits() + "," + this.yAxis.getUnits() + ")";
             }
           }

